﻿var AssetstructTableManage = {
    gridDefine: {
        columns: [
            { display: lang.table_code, name: 'T_ENG_NAME', minWidth: 100 },
            { display: lang.table_name, name: 'T_CN_NAME', minWidth: 120 },
            { display: lang.Business_in, name: 'T_CAT', minWidth: 100 },
            { display: lang.field, name: 'T_FIELD', minWidth: 100 },
            { display: lang.operation, name: 'DICTTYPE_ID2', minWidth: 220, align: 'center', render: linkop }
        ],
        url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
        urlType: "QueryStructTableProList"
    },
    init: function () {
        jsPageRender(this, true);
    },
    search: function () {
        jsPageSearch(this);
    }
};

function linkop(value, row, index) {
    var _str = 'dicttypeid=' + row.T_CODE;
    return '<span style="padding-right:15px;"><a href="javascript:void(0)" onclick="openPage(\'structTableProEdit\',\'' + _str + '\');">' + lang.edit + '</a></span>';
}

